FHIR © HL7.org  |  Server Home  |  FHIR Server FHIR Server 3.4.11  |  FHIR Version n/a  User: [n/a]

Resource StructureDefinition/FHIR Server from package uk.nhsdigital.r4.test#2.10.1-prerelease (94 ms)

Package uk.nhsdigital.r4.test
Type StructureDefinition
Id Id
FHIR Version R4
Source https://simplifier.net/resolve?scope=uk.nhsdigital.r4.test@2.10.1-prerelease&canonical=https://fhir.nhs.uk/StructureDefinition/NHSDigital-Task
Url https://fhir.nhs.uk/StructureDefinition/NHSDigital-Task
Version 1.0.1
Status draft
Date 2024-08-14T13:51:00+00:00
Name NHSDigitalTask
Experimental False
Type Task
Kind resource

Resources that use this resource

CapabilityStatement
https://fhir.nhs.uk/CapabilityStatement/nhsdigital-eps-requirements NHSDigitalEPSRequirements
https://fhir.nhs.uk/CapabilityStatement/apim-medicines-api-example APIMEPS
https://fhir.nhs.uk/CapabilityStatement/nhsdigital-requirements NHSDigitalRequirements
https://fhir.nhs.uk/StructureDefinition/Extension-NHSDigital-ServiceRequest-Workflow ExtensionNHSDigitalServiceRequestWorkflow
https://fhir.nhs.uk/StructureDefinition/Extension-eRS-ServiceRequest-State ExtensionNHSDigitaleRSReferralState
https://fhir.nhs.uk/StructureDefinition/NHSDigital-DocumentReference NHSDigitalDocumentReference
https://fhir.nhs.uk/StructureDefinition/NHSDigital-Task-EPS NHSDigitalTaskEPS
https://fhir.nhs.uk/StructureDefinition/NHSDigital-Task-PatientCare NHSDigitalTaskPatientCare

Resources that this resource uses

StructureDefinition
https://fhir.hl7.org.uk/StructureDefinition/UKCore-Patient UK Core Patient
https://fhir.nhs.uk/StructureDefinition/Extension-EPS-Prescription ExtensionEPSPrescription
https://fhir.nhs.uk/StructureDefinition/Extension-EPS-RepeatInformation ExtensionEPSRepeatInformation
https://fhir.nhs.uk/StructureDefinition/Extension-Provenance-agent ExtensionProvenanceAgent
https://fhir.nhs.uk/StructureDefinition/NHSDigital-Appointment NHSDigitalAppointment
https://fhir.nhs.uk/StructureDefinition/NHSDigital-Bundle-FHIRMessage NHSDigitalBundleFHIRMessage
https://fhir.nhs.uk/StructureDefinition/NHSDigital-MedicationRequest NHSDigitalMedicationRequest
https://fhir.nhs.uk/StructureDefinition/NHSDigital-Organization NHSDigitalOrganization
https://fhir.nhs.uk/StructureDefinition/NHSDigital-PractitionerRole NHSDigitalPractitionerRole
https://fhir.nhs.uk/StructureDefinition/NHSDigital-Questionnaire NHSDigitalQuestionnaire
https://fhir.nhs.uk/StructureDefinition/NHSDigital-ServiceRequest NHSDigitalServiceRequest
https://fhir.nhs.uk/ValueSet/NHSDigital-action-code NHSDigital Action Code
https://fhir.nhs.uk/ValueSet/NHSDigital-task-code NHSDigital Task Code
https://fhir.nhs.uk/ValueSet/NHSDigital-workflow-code NHSDigital Workflow Code


Source

{
  "resourceType" : "StructureDefinition",
  "url" : "https://fhir.nhs.uk/StructureDefinition/NHSDigital-Task",
  "name" : "NHSDigitalTask",
  "status" : "draft",
  "version" : "1.0.1",
  "date" : "2024-08-14T13:51:00+00:00",
  "fhirVersion" : "4.0.1",
  "kind" : "resource",
  "abstract" : false,
  "type" : "Task",
  "baseDefinition" : "https://fhir.hl7.org.uk/StructureDefinition/UKCore-Task",
  "derivation" : "constraint",
  "differential" : {
    "element" : [
      {
        "id" : "Task",
        "path" : "Task",
        "definition" : "FHIR Task usage and scope is defined as \r\n\r\n> A task resource describes an activity that can be performed and tracks the state of completion of that activity. It is a representation that an activity should be or has been initiated, and eventually, represents the successful or unsuccessful completion of that activity. Note that there are a variety of processes associated with making and processing orders. Some orders may be handled immediately by automated systems but most require real world actions by one or more humans. Some orders can only be processed when other real world actions happen, such as a patient presenting themselves so that the action to be performed can actually be performed. Often these real world dependencies are only implicit in the order details.\r\n\r\n**A Task resource often exists in parallel with clinical resources.** \r\n\r\nFor example, a Task could request fulfillment of a ServiceRequest ordering a Procedure that would result in a Procedure, Observation, DiagnosticReport, ImagingStudy or similar resource. Another example would be a Task that requests fulfillment of a CommunicationRequest to be performed between various actors.",
        "comment" : "Task has three main uses: \r\n\r\n- basic delivery of an order resource (e.g. MedicationRequest or ServiceRequest)\r\n- minor workflow requests (e.g. phone patient, complete form or validate a referral)\r\n- workflow support (centred around complex workflow support and may involves a workflow engine)\r\n\r\n##### Order Fulfilment\r\n\r\nCentres on the fulfilment of the order. It does not contain the order details which are held in a referenced request resource. \r\nIn the diagram below the recipient or fulfiller of the order uses FHIR Task to accept or reject the order, it also uses Task to send `event` updates. \r\nNote the fulfiller will use other resources to record the details of the fulfilment such as MedicationDispense for a MedicationRequest.\r\n\r\n<img src=\"https://raw.githubusercontent.com/NHSDigital/NHSDigital-FHIR-ImplementationGuide/master/Diagams/Task-Deliver.PNG\" width=\"60%\"/>\r\n\r\nExamples:\r\n\r\n| Task.code | Task.status | Task.focus | Task.requester | Meaning | \r\n|--|--|--|--|\r\n| fulfill | rejected | MedicationRequest | dispenser | The dispenser is rejecting the fulfilment/deliver of a referenced MedicationRequest. The MedicationRequest is not cancelled |\r\n| fullfill | cancelled | MedicationRequest | any | The requested fulfilment of the MedicationRequest is cancelled. The referenced MedicationRequest is not cancelled |\r\n| fullfill | accepted | MedicationRequest | dispenser | The dispenser is taking responsibility of fulfilling the referenced MedicationRequest. |\r\n| fullfill | completed | MedicationRequest | dispenser | The requested fulfilment of the MedicationRequest is completed. The referenced MedicationRequest can now be changed to completed. |\r\n\r\nSee the section on `status` for more details.\r\n\r\n<br/>\r\n\r\n##### Minor Workflow Requests\r\n\r\nThis is used to implement additional around an order or to record specific workflow requests. These may not have a focused resource reference. It is anticipated they are coded using SNOMED CT.\r\n\r\n<img src=\"https://raw.githubusercontent.com/NHSDigital/NHSDigital-FHIR-ImplementationGuide/master/Diagams/Task-Action.PNG\" width=\"60%\"/>\r\nExamples:\r\n\r\n| Task.code | Task.focus | Task.requester | Task.owner | Task.reasonCode | Meaning |\r\n|--|--|--|--|--|\r\n| 413292001 Assessment for referral | ServiceRequest | referrer | clinician | 3457005 Patient Referral | Check the referenced referral is valid. | \r\n| 182836005 Review of medication | | clinician | GP | 151715009 Emergency admission, asthma | Request to review medication following an emergency admission. | \r\n| 103742009 Renewal of prescription | MedicationRequest | patient | GP | | Request for a reissue/refill of a medication | \r\n| 324861000000109 Review of patient laboratory test report | DiagnosticReport | consultant | | | Request for a lab report to be reviewed. See also <a href=\"https://nhsconnect.github.io/CareConnectAPI/engage_poc_uhscc.html\">UHS Lab Reports</a> | \r\n\r\nThe Task.status can be used to indicate fulfilment/delivery status.\r\n\r\n\r\n\r\n<br/>\r\n\r\n##### Workflow Support\r\n\r\nMore advanced workflow is supported, this adds in the use of Task.input and Task.output. This allows the passage of inputs and outputs which may be found in automated workflow activities.\r\n\r\nThe diagram below is from an acute trusts handling of a received eRS referral request. Each process communicates via the FHIR Task, the first process takes the eRS referral and gets the referral letter from eRS, these are then passed to the clinician for triage. Once triaged, the clinician creates a book appointment Task which the admin's action.\r\n\r\n<img src=\"https://raw.githubusercontent.com/NHSDigital/NHSDigital-FHIR-ImplementationGuide/master/Diagams/Task-automated.PNG\" width=\"60%\"/>"
      },
      {
        "id" : "Task.extension",
        "path" : "Task.extension",
        "slicing" : {
          "discriminator" : [
            {
              "type" : "value",
              "path" : "url"
            }
          ],
          "rules" : "open"
        },
        "min" : 0
      },
      {
        "id" : "Task.extension:agent",
        "path" : "Task.extension",
        "sliceName" : "agent",
        "short" : "Provenance of the resource",
        "definition" : "Is used as the author on request resources.",
        "min" : 0,
        "max" : "1",
        "type" : [
          {
            "code" : "Extension",
            "profile" : [
              "https://fhir.nhs.uk/StructureDefinition/Extension-Provenance-agent"
            ]
          }
        ],
        "mustSupport" : true
      },
      {
        "id" : "Task.extension:prescription",
        "path" : "Task.extension",
        "sliceName" : "prescription",
        "short" : "EPS Patient Tracker extension",
        "definition" : "```json\r\n\"extension\": [\r\n {\r\n \"url\": \"https://fhir.nhs.uk/StructureDefinition/Extension-EPS-Prescription\",\r\n \"extension\": [\r\n {\r\n \"url\": \"courseOfTherapyType\",\r\n \"valueCoding\": {\r\n \"system\": \"http://terminology.hl7.org/CodeSystem/medicationrequest-course-of-therapy\",\r\n \"code\": \"acute\",\r\n \"display\": \"Acute\"\r\n }\r\n }\r\n ]\r\n }\r\n ],\r\n```",
        "min" : 0,
        "max" : "1",
        "type" : [
          {
            "code" : "Extension",
            "profile" : [
              "https://fhir.nhs.uk/StructureDefinition/Extension-EPS-Prescription"
            ]
          }
        ],
        "mustSupport" : true
      },
      {
        "id" : "Task.extension:repeatInformation",
        "path" : "Task.extension",
        "sliceName" : "repeatInformation",
        "short" : "Used in the EPS Prescription Tracker",
        "definition" : "```json\r\n\"extension\": [\r\n {\r\n \"url\": \"https://fhir.nhs.uk/StructureDefinition/Extension-EPS-RepeatInformation\",\r\n \"extension\": [\r\n {\r\n \"url\": \"numberOfRepeatsAllowed\",\r\n \"valueUnsignedInt\": 6\r\n },\r\n {\r\n \"url\": \"numberOfRepeatsIssued\",\r\n \"valueUnsignedInt\": 2\r\n }\r\n ]\r\n },\r\n```",
        "min" : 0,
        "max" : "1",
        "type" : [
          {
            "code" : "Extension",
            "profile" : [
              "https://fhir.nhs.uk/StructureDefinition/Extension-EPS-RepeatInformation"
            ]
          }
        ],
        "mustSupport" : true
      },
      {
        "id" : "Task.identifier",
        "path" : "Task.identifier",
        "definition" : "For **EPS**\r\n\r\nA single identifier **MUST** be present and the value must be a UUID.\r\n\r\n```json\r\n\"identifier\": [\r\n {\r\n \"system\": \"https://tools.ietf.org/html/rfc4122\",\r\n \"value\": \"5AC84C11-DB8B-44DA-8FCF-8980B3D13596\"\r\n }\r\n ],\r\n```",
        "mustSupport" : true
      },
      {
        "id" : "Task.groupIdentifier",
        "path" : "Task.groupIdentifier",
        "definition" : "**EPS Only**\r\n\r\nAn identifier to the original `prescription-order` **MUST** be present. Only the short form identifier needs to be supplied.\r\n\r\n```json\r\n\"groupIdentifier\": {\r\n \"system\": \"https://fhir.nhs.uk/Id/prescription-order-number\",\r\n \"value\": \"88AF6C-C81007-00001C\"\r\n },\r\n```",
        "mustSupport" : true
      },
      {
        "id" : "Task.status",
        "path" : "Task.status",
        "definition" : "These workflow tasks have `status` which indicates the Task status. \r\n\r\nThe following diagram reflects the \"typical\" state machine for Task. Note that not all states will be supported by all workflows and that some workflows may support additional transitions, including transitions from terminal states (e.g. back to \"in-progress\" from \"failed\" or \"completed\").\r\n\r\n<img src=\"https://www.hl7.org/fhir/task-state-machine.svg\"></img>\r\n\r\nFor example: \r\n\r\nA patient requesting a repeat prescription would ask for task with code `fulfil` used with `103742009 | Renewal of prescription` and a status of `requested`. \r\nOnce reviewed (by a clinician), the task status would be changed to `accepted`. When the task is then picked up (`in-progress`) and the related *MedicationRequest* is sent, the status would change to `completed`.",
        "comment" : "For **EPS**\r\n\r\nOnly `in-progress` is currently supported for reasonCode = 373784005 (Dispensing medication) and focus is a `dispense-notification`. \r\n\r\n`rejected` / `cancelled` / `failed` are supported for reasonCode = 33633005 (Prescription of drug) and focus is a `prescription-order`.",
        "mustSupport" : true
      },
      {
        "id" : "Task.statusReason",
        "path" : "Task.statusReason",
        "definition" : "**For EPS only**\r\n\r\n| reasonCode | focus | status | CodeSystem |\r\n|--|--|--|--|\r\n| 373784005 - Dispensing medication | `dispense-notification` | `cancelled` | [https://fhir.nhs.uk/CodeSystem/EPS-task-dispense-withdraw-reason](https://simplifier.net/resolve?target=simplifier&scope=uk.nhsdigital.r4&canonical=https://fhir.nhs.uk/CodeSystem/EPS-task-dispense-withdraw-reason) |\r\n| 33633005 - Prescription of drug | `prescription-order` | `rejected` / `cancelled` / `failed` | [https://fhir.nhs.uk/CodeSystem/EPS-task-dispense-return-status-reason](https://simplifier.net/resolve?target=simplifier&scope=uk.nhsdigital.r4&canonical=https://fhir.nhs.uk/CodeSystem/EPS-task-dispense-return-status-reason) |\r\n\r\n```json\r\n\"statusReason\": [{\r\n \"coding\": [\r\n {\r\n \"system\": \"https://fhir.nhs.uk/CodeSystem/EPS-task-dispense-withdraw-reason\",\r\n \"code\": \"DA\",\r\n \"display\": \"Dosage Amendments\"\r\n }\r\n ]\r\n }]\r\n```"
      },
      {
        "id" : "Task.intent",
        "path" : "Task.intent",
        "comment" : "Is not processed by EPS and is included for FHIR compliance reasons. The value should always be `order`.",
        "mustSupport" : true
      },
      {
        "id" : "Task.code",
        "path" : "Task.code",
        "definition" : "**e-RS** \r\n\r\nA SNOMED CT procedure code to indicate the action\r\n\r\n```json\r\n \"code\": {\r\n \"coding\": [\r\n {\r\n \"system\": \"http://snomed.info/sct\",\r\n \"code\": \"386053000\",\r\n \"display\": \"Evaluation procedure\"\r\n }\r\n ]\r\n },\r\n```\r\n\r\n**EPS**\r\n\r\nThe SNOMED action codes are complemented with `order delivery` [task-code](https://www.hl7.org/fhir/valueset-task-code.html) which indicates the type of action to be performed against the focal resource. \r\n\r\nFor example:\r\n\r\nThe code `fulfil` used with `182836005 | Review of medication` means a task to review medication.\r\nThe code `approve` used with `103742009 | Renewal of prescription` is a task for a clinician to approve the issue of a repeat medication.\r\n\r\n```json\r\n \"code\": {\r\n \"coding\": [\r\n {\r\n \"system\": \"http://hl7.org/fhir/CodeSystem/task-code\",\r\n \"code\": \"fulfill\",\r\n \"display\": \"Fulfill the focal request\"\r\n }\r\n ]\r\n ```",
        "min" : 1,
        "mustSupport" : true
      },
      {
        "id" : "Task.code.coding",
        "path" : "Task.code.coding",
        "slicing" : {
          "discriminator" : [
            {
              "type" : "value",
              "path" : "system"
            }
          ],
          "rules" : "open"
        }
      },
      {
        "id" : "Task.code.coding.system",
        "path" : "Task.code.coding.system",
        "min" : 1
      },
      {
        "id" : "Task.code.coding.code",
        "path" : "Task.code.coding.code",
        "min" : 1
      },
      {
        "id" : "Task.code.coding:SNOMED",
        "path" : "Task.code.coding",
        "sliceName" : "SNOMED",
        "binding" : {
          "strength" : "extensible",
          "valueSet" : "https://fhir.nhs.uk/ValueSet/NHSDigital-action-code"
        }
      },
      {
        "id" : "Task.code.coding:SNOMED.system",
        "path" : "Task.code.coding.system",
        "fixedUri" : "http://snomed.info/sct"
      },
      {
        "id" : "Task.code.coding:Fulfilment",
        "path" : "Task.code.coding",
        "sliceName" : "Fulfilment",
        "binding" : {
          "strength" : "extensible",
          "valueSet" : "https://fhir.nhs.uk/ValueSet/NHSDigital-task-code"
        }
      },
      {
        "id" : "Task.code.coding:Fulfilment.system",
        "path" : "Task.code.coding.system",
        "fixedUri" : "http://hl7.org/fhir/CodeSystem/task-code"
      },
      {
        "id" : "Task.code.coding:Worflow",
        "path" : "Task.code.coding",
        "sliceName" : "Worflow",
        "binding" : {
          "strength" : "extensible",
          "valueSet" : "https://fhir.nhs.uk/ValueSet/NHSDigital-workflow-code"
        }
      },
      {
        "id" : "Task.code.coding:Worflow.system",
        "path" : "Task.code.coding.system",
        "fixedUri" : "https://fhir.nhs.uk/CodeSystem/Workflow-Code"
      },
      {
        "id" : "Task.focus",
        "path" : "Task.focus",
        "definition" : "**e-RS**\r\n\r\nReference to the resource which is the focus of the action \r\n\r\n```json\r\n \"focus\": {\r\n \"reference\": \"https://server.fire.ly/ServiceRequest/eb13327f-e990-4667-b37a-89eb93a94c47\"\r\n },\r\n```\r\n\r\n** EPS Only**\r\n\r\nThis will be the `Bundle.identifier` of the message this Task is acting on. \r\nFor Tasks with a reasonCode of `373784005 - Dispensing medication` this will be a `dispense-notification` message. \r\nFor Tasks with a reasonCode of `33633005 - Prescription of drug` this will be the `prescription-order` message from the Task/$release operation.\r\n\r\n```json\r\n\"focus\": {\r\n \"type\": \"Bundle\",\r\n \"identifier\": {\r\n \"system\": \"https://tools.ietf.org/html/rfc4122\",\r\n \"value\": \"334a3195-1f6c-497a-8efe-d272ca9c4e38\"\r\n }\r\n },\r\n```",
        "comment" : "Tasks are often generated as a consequence of other workflows or relate to FHIR Workflow resources. For example a repeat medication request will be related to a previous `MedicationRequest` or a medication reconciliation may relate to a hospital admissions `Encounter/EpisodeOfCare`. This is carried in the `focus` element.\r\n\r\n`focus` can be omitted. For example if an ED generated a Medication Review as a result of COPD Emergency encounter they may chose to include a reference to the Encounter but they may decide instead to use a more specific reasonCode such as `394720003 | Asthma medication review`.",
        "type" : [
          {
            "code" : "Reference",
            "targetProfile" : [
              "https://fhir.nhs.uk/StructureDefinition/NHSDigital-Appointment",
              "https://fhir.nhs.uk/StructureDefinition/NHSDigital-ServiceRequest",
              "https://fhir.nhs.uk/StructureDefinition/NHSDigital-Bundle-FHIRMessage",
              "https://fhir.nhs.uk/StructureDefinition/NHSDigital-MedicationRequest",
              "https://fhir.hl7.org.uk/StructureDefinition/UKCore-Patient",
              "https://fhir.nhs.uk/StructureDefinition/NHSDigital-Questionnaire"
            ]
          }
        ],
        "constraint" : [
          {
            "key" : "nhsd-taskfocus",
            "severity" : "error",
            "human" : "focus - An identifier reference or resource reference must be provided",
            "expression" : "(reference.exists() or identifier.exists())"
          }
        ],
        "mustSupport" : true
      },
      {
        "id" : "Task.for",
        "path" : "Task.for",
        "definition" : "A reference to the patient the Task is for. This will always be an identifier reference using the Patients NHSNumber.\r\n\r\n```json\r\n\"for\": {\r\n \"identifier\": {\r\n \"system\": \"https://fhir.nhs.uk/Id/nhs-number\",\r\n \"value\": \"9446368138\"\r\n }\r\n },\r\n```",
        "min" : 1,
        "constraint" : [
          {
            "key" : "patient-reference",
            "severity" : "error",
            "human" : "An identifier reference or resource reference must be provided",
            "expression" : "(reference.exists() or identifier.exists())"
          },
          {
            "key" : "patient-nhs",
            "severity" : "error",
            "human" : "Length of the supplied NHS Number is wrong.",
            "expression" : "identifier.where(system='https://fhir.nhs.uk/Id/nhs-number').exists().not() or (identifier.where(system='https://fhir.nhs.uk/Id/nhs-number').exists() and identifier.where(system='https://fhir.nhs.uk/Id/nhs-number').value.matches('^([0-9]{10})$'))"
          }
        ],
        "mustSupport" : true
      },
      {
        "id" : "Task.for.identifier",
        "path" : "Task.for.identifier",
        "min" : 1
      },
      {
        "id" : "Task.for.identifier.system",
        "path" : "Task.for.identifier.system",
        "min" : 1,
        "fixedUri" : "https://fhir.nhs.uk/Id/nhs-number"
      },
      {
        "id" : "Task.for.identifier.value",
        "path" : "Task.for.identifier.value",
        "min" : 1
      },
      {
        "id" : "Task.authoredOn",
        "path" : "Task.authoredOn",
        "definition" : "Date and time the task was created.\r\n\r\n```json\r\n\"authoredOn\": \"2020-12-21T17:03:20-00:00\",\r\n```",
        "mustSupport" : true
      },
      {
        "id" : "Task.requester",
        "path" : "Task.requester",
        "definition" : "Who is created the Request or the Event. In NHSDigital API's this **SHOULD** always be a PractitionerRole role reference.\r\n\r\n```json\r\n \"requester\": {\r\n \"reference\": \"#requester\"\r\n },\r\n```\r\n\r\nThis will reference a `contained` PractitionerRole (note: this resource only contains limited user metadata such as ODS Code, professional code and SDS User Profile Id). This resource should not hold data which is held in SDS, only enough information to identify the SDS Entry,\r\n\r\n```json\r\n{\r\n \"resourceType\": \"Task\",\r\n \"id\": \"bd1ca5c4-ff49-4f2a-9db4-f5dda0112084\",\r\n \"meta\": {\r\n \"lastUpdated\": \"2016-07-11T11:07:22+00:00\"\r\n },\r\n \"contained\": [\r\n {\r\n \"resourceType\": \"PractitionerRole\",\r\n \"id\": \"requester\",\r\n \"practitioner\": {\r\n \"identifier\": {\r\n \"system\": \"https://fhir.hl7.org.uk/Id/gmp-number\",\r\n \"value\": \"G8123456\"\r\n },\r\n \"display\": \"DR AA BHATIA\"\r\n },\r\n \"organization\": {\r\n \"identifier\": {\r\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\r\n \"value\": \"C81007\"\r\n },\r\n \"display\": \"VERNON STREET MEDICAL CTR\"\r\n },\r\n \"telecom\": [\r\n {\r\n \"system\": \"phone\",\r\n \"use\": \"work\",\r\n \"value\": \"01234567890\"\r\n }\r\n ]\r\n }\r\n ],\r\n```",
        "type" : [
          {
            "code" : "Reference",
            "targetProfile" : [
              "https://fhir.nhs.uk/StructureDefinition/NHSDigital-PractitionerRole"
            ],
            "aggregation" : [
              "contained"
            ]
          }
        ],
        "mustSupport" : true
      },
      {
        "id" : "Task.requester.identifier.system",
        "path" : "Task.requester.identifier.system",
        "min" : 1
      },
      {
        "id" : "Task.requester.identifier.value",
        "path" : "Task.requester.identifier.value",
        "min" : 1
      },
      {
        "id" : "Task.owner",
        "path" : "Task.owner",
        "short" : "Responsible organisation",
        "definition" : "**EPS**\r\n\r\nWho is responsible for actioning the request Task (e.g. for a prescription-order this will be the pharmacy). \r\n\r\n```json\r\n\"owner\": {\r\n \"identifier\": {\r\n \"system\": \"https://fhir.nhs.uk/Id/ods-organization-code\",\r\n \"value\": \"FB444\"\r\n },\r\n \"display\": \"Freds Pharmacy\"\r\n },\r\n```\r\n\r\n**e-RS**\r\n\r\n```json\r\n\"owner\": {\r\n \"identifier\": {\r\n \"system\": \"https://fhir.nhs.uk/Id/ers-service\",\r\n \"value\": \"12444\"\r\n }\r\n },\r\n```",
        "type" : [
          {
            "code" : "Reference",
            "targetProfile" : [
              "https://fhir.nhs.uk/StructureDefinition/NHSDigital-PractitionerRole",
              "https://fhir.nhs.uk/StructureDefinition/NHSDigital-Organization"
            ]
          }
        ],
        "mustSupport" : true
      },
      {
        "id" : "Task.owner.identifier.system",
        "path" : "Task.owner.identifier.system",
        "min" : 1
      },
      {
        "id" : "Task.owner.identifier.value",
        "path" : "Task.owner.identifier.value",
        "min" : 1
      },
      {
        "id" : "Task.reasonCode",
        "path" : "Task.reasonCode",
        "definition" : "In FHIR Task these types of workflow would be represented via **reasonCode** and/or **reasonReference**\r\n\r\nFor medication this is probably SNOMED CT based using codes under the SNOMED CT 182832007 Medication management and includes codes such as:\r\n\r\n| SNOMED CT | Display |\r\n|--|--|\r\n| 33633005 | Prescription of drug |\r\n| 373784005 | Dispensing medication |\r\n\r\n<br/>\r\n\r\nFor referral management\r\n\r\n| SNOMED CT | Display |\r\n|--|--|\r\n| <a href=\"https://ontoserver.csiro.au/shrimp/?concept=3457005&version=http%3A%2F%2Fsnomed.info%2Fsct%2F83821000000107%2Fversion%2F20211124&valueset=http%3A%2F%2Fsnomed.info%2Fsct%2F83821000000107%3Ffhir_vs&fhir=https%3A%2F%2Fontology.nhs.uk%2Fauthoring%2Ffhir\">3457005</a> | Patient Referral |\r\n| <a href=\"https://ontoserver.csiro.au/shrimp/?concept=185499000&version=http%3A%2F%2Fsnomed.info%2Fsct%2F83821000000107%2Fversion%2F20211124&valueset=http%3A%2F%2Fsnomed.info%2Fsct%2F83821000000107%3Ffhir_vs&fhir=https%3A%2F%2Fontology.nhs.uk%2Fauthoring%2Ffhir\">185499000</a>| Expedite appointment |",
        "mustSupport" : true
      },
      {
        "id" : "Task.reasonCode.coding",
        "path" : "Task.reasonCode.coding",
        "slicing" : {
          "discriminator" : [
            {
              "type" : "value",
              "path" : "system"
            }
          ],
          "rules" : "open"
        }
      },
      {
        "id" : "Task.reasonCode.coding.system",
        "path" : "Task.reasonCode.coding.system",
        "min" : 1
      },
      {
        "id" : "Task.reasonCode.coding.code",
        "path" : "Task.reasonCode.coding.code",
        "min" : 1
      },
      {
        "id" : "Task.reasonCode.coding.display",
        "path" : "Task.reasonCode.coding.display",
        "min" : 1
      },
      {
        "id" : "Task.reasonCode.coding:SNOMED",
        "path" : "Task.reasonCode.coding",
        "sliceName" : "SNOMED"
      },
      {
        "id" : "Task.reasonCode.coding:SNOMED.system",
        "path" : "Task.reasonCode.coding.system",
        "fixedUri" : "http://snomed.info/sct"
      },
      {
        "id" : "Task.note",
        "path" : "Task.note",
        "definition" : "**EPS Only**\r\n\r\nThis may contain cancellation reason.\r\n\r\n**e-RS**\r\n\r\nUsed to add notes to the worklist items\r\n\r\n```json\r\n\"note\": [\r\n {\r\n \"text\": \"Optional comments\"\r\n }\r\n ]\r\n```",
        "mustSupport" : true
      },
      {
        "id" : "Task.restriction",
        "path" : "Task.restriction",
        "mustSupport" : true
      },
      {
        "id" : "Task.restriction.period.end",
        "path" : "Task.restriction.period.end",
        "definition" : "In **e-RS** this is also known as the review date due.",
        "comment" : "**e-RS**\r\n\r\n- If deferred to provider (because there were no appointments available for a directly bookable service) then this is the date by which the provide should resolve the appointment slot issue; or\r\n- If the referral was sent to a triage service then this is the date by which the provider should have reviewed the referral",
        "mustSupport" : true
      },
      {
        "id" : "Task.input",
        "path" : "Task.input",
        "mustSupport" : true
      }
    ]
  },
  "text" : {
  }
}

XIG built as of ??metadata-date??. Found ??metadata-resources?? resources in ??metadata-packages?? packages.